package com.stu.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2023-12-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class StuA implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    @ExcelProperty("学号")
    private Long sid;
    @ExcelProperty("学生姓名")
    private String name;

    private Long clazzId;
    @ExcelProperty("年龄")
    private Integer age;

    /**
     * 专业
     */
    @ExcelProperty("专业")
    private String major;

    /**
     * 年级 2023
     */
    @ExcelProperty("入学年份")
    private Integer grade;
    @ExcelProperty("学校")
    private String school;
    @ExcelProperty("性别")
    private String sex;
    @ExcelProperty("家庭住址")
    private String address;
    @ExcelProperty("电话")
    private String phone;
    @ExcelProperty("父母电话")
    private String parentPhone;
    @ExcelProperty("考研或就业")
    private String study;
    @ExcelProperty("爱好")
    private String hobby;
    @ExcelProperty("身份证号")
    private String idNumber;
    /**
     * 状态 0未通过 1已通过
     */
    @ExcelProperty("状态")
    private String status;
    @ExcelProperty("描述")
    private String description;
    @ExcelProperty("来访时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //更新时间
    @ExcelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    //创建人
    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    //修改人
    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

    /**
     * 逻辑删除 0:可用1:逻辑删除
     */
    @ExcelIgnore
    private Integer isDeleted;


}
